#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

void exchange(int* arr1, int* arr2)
{
	int j = 0;
	for (j = 0; j < 5; j++)
	{
		int tmp = arr1[j];
		arr1[j] = arr2[j];
		arr2[j] = tmp;
	}
}


int main()
{
	int arr1[5] = { 1,2,3,4,5 };
	int arr2[5] = { 6,7,8,9,0 };
	int i = 0;
	exchange(arr1, arr2);
	for (i = 0; i < 5; i++)
	{
		printf("%d ", arr1[i]);
	}
	printf("\n");
	for (i = 0; i < 5; i++)
	{
		printf("%d ", arr2[i]);
	}
	return 0;
}